* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}
/*每个页面公共css */
/* 重置样式 */
page {
	background-color: #f8f8f8;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	color: #333;
	font-size: 28rpx;
	line-height: 1.5;
}

/* 按钮样式重置 */
button {
	margin: 0;
	padding: 0;
	background-color: transparent;
	border: none;
	outline: none;
}

button::after {
	border: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
	width: 0;
	height: 0;
	background-color: transparent;
}

/* 动画效果 */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes scaleIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* 通用动画类 */
.fade-in {
	animation: fadeIn 0.3s ease-in-out;
}

.scale-in {
	animation: scaleIn 0.3s ease-in-out;
}

.slide-up {
	animation: slideUp 0.3s ease-in-out;
}

/* 通用样式 */
.flex-row {
	display: flex;
	flex-direction: row;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.text-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.text-ellipsis-2 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.food-desc {
	font-size: 24rpx;
	color: #999;
	margin-bottom: 10rpx;
	width: 100%; 
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-height: 1.5;
	max-height: 3em; 
	word-break: break-all;
}
	
.icon_cart {
	position: relative;
	width: 80rpx;
	height: 80rpx;
	text-align: center;
	line-height: 80rpx;
	margin-right: 40rpx;
	color: black;
	font-weight: bold;
}
.tip {
	position: absolute;
	border-radius: 50rpx;
	background-color: red;
	top: 10%;
	right: 0;
	color: white;
	font-size: 0.6rem;
	height: 30rpx;
	width: 30rpx;
	line-height: 30rpx;
	text-align: center;
}